package com.qh.yyxt.service;

import com.qh.yyxt.pojo.entity.thing.Thing;
import com.qh.yyxt.pojo.ThingDTO;

import java.util.List;

public interface ThingService
{
    //添加物品
    public int addThing(Thing thing);
    //修改num renum
    public int updateNum(Integer id,Integer num,Integer renum);
    //删除一件物品
    public int delete(Integer id);

    //修改信息
    public int updateInfo(Thing thing);
    //根据id查询
    public ThingDTO findById(Integer id);
    //展示物品清单
    public List<ThingDTO>findAllToApply();
    //展示物品清单 根据type显示
    public List<ThingDTO>findAllToApply(int flag);
    public Thing findThingById(Integer id);

}
